import time
import datetime


def local_date() -> str:
    """
    :return: 获取本地日期
    """
    return time.strftime("%Y-%m-%d")


def local_time() -> str:
    """
    :return: 获取本地时间
    """
    return time.strftime("%Y-%m-%d %H:%M:%S")


def date_type():
    """
    :return: date type data
    """
    return datetime.datetime.strptime(time.strftime("%Y-%m-%d"), "%Y-%m-%d")


def datetime_type():
    """
    :return: datetime type data
    """
    return datetime.datetime.strptime(time.strftime("%Y-%m-%d %H:%M:%S"), "%Y-%m-%d %H:%M:%S")


def local() -> str:
    return time.strftime("%Y-%m-%d %H:%M:%S")


def nest() -> str:
    temp = datetime.datetime.strptime(time.strftime("%Y-%m-%d"), "%Y-%m-%d") + datetime.timedelta(days=1)
    return temp.strftime("%Y-%m-%d")
